import axios from '@/utils/axios'

export const getUserRoleRelationList = (params: BaseUserRoleRelation): Promise<ApiResult<Array<BaseUserRoleRelation>>> => {
    return axios.get(`base/user/role/relation/list`, { params })
}

export const postUserRoleRelation = (params: {userId: string, roleIds: Array<string>}): Promise<ApiResult<null>> => {
    return axios.post(`base/user/role/relation/list`, {}, {params})
}